<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
          * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }

        body {
            background: pink;
        }

        .wrap {
            margin: 100px auto 0;
            width: 930px;
            height: 400px;
            padding: 10px 0 0 10px;
            background:pink;
            overflow: hidden;
            border: 1px solid #fff;
        }
        .wrap li {
            float: left;
            margin: 0 10px 10px 0;

        }
        .wrap img {
            display: block;
            border: 0;
            width: 300px;
            height: 200px;
        }
    </style>
    <script src="jQuery.js"></script>
<script>
     jQuery(window).ready(function () {
        $(".wrap").find("li").mouseenter(function () {
                //链式编程
                $(this).css("opacity", 0.5).siblings().css('opacity',1)
            }); 
            $(".wrap").mouseleave(function(){
                $(this).find('li').css('opacity',1)
            })
        }
       
     )
</script>
</head> 
<body>
     <div class="wrap">
        <ul>
            <li><img src="banner/april-6.jpg" alt=""></li>
            <li><img src="banner/april-8.jpg" alt=""></li>
            <li><img src="banner/april-9.jpg" alt=""></li>
            <li><img src="banner/april-10.jpg" alt=""></li>
            <li><img src="banner/april-14.jpg" alt=""></li>
            <li><img src="banner/april-13.jpg" alt=""></li>
        </ul>
     </div>
</body>
</html>